﻿@model SuperiorModel.TPagedModelList<SuperiorModel.UserCouponModel>
<table class="layui-table" id="AppList" lay-filter="test">
    <thead>
        <tr>
            <th>用户昵称</th>
            <th>优惠券ID</th>
            <th>优惠券名称</th>
            <th>优惠券类型</th>
            <th>领取时间</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TList)
        {
            <tr>
                <td>@item.NickName</td>
                <td>@item.CouponId</td>
                <td>@item.CouponName</td>
                
                <td>

                    @switch (item.CouponType)
                    {
                        case 1:
                            <span style="color:green">满减券</span>
                            break;
                        case 2:
                            <span style="color:green">折扣券</span>
                            break;
                       
                    }
                </td>
                <td>@item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")</td>
               
            </tr>
        }
    </tbody>
</table>
@Html.Partial("_TPager", Model.PagingResult)